<table border="0" bordercolor="red" width="100%" height="100%" cellspacing="0" cellpadding="0">
	<tr>
		<td style="width:250px; padding-<?php echo Config::get('align_not', 'i18n')?>:10px;"">
			<?php
			$class_name = 'simple_tree_off';
			if (!intval($group_id)) {
				$class_name = 'simple_tree_on';
			} ?>
			<a href="<?php echo CURRENT_URL; ?>0" class="<?php echo $class_name; ?>">
				<div class="simple_tree_item_off" group_id="0">
					All users
				</div>
			</a>
			<?php
			foreach ($group_list as $group) {
				$class_name = 'simple_tree_off';
				if (intval($group_id) == intval($group['id'])) {
					$class_name = 'simple_tree_on';
				} ?>
				<a href="<?php echo CURRENT_URL, $group['id']; ?>" class="<?php echo $class_name; ?>">
					<div class="simple_tree_item_off" group_id="<?php echo $group['id']; ?>">
						<?php echo $group['name']; ?>
					</div>
				</a>
			<?php } ?>
		</td>
		<td>
		<?php
		if (count($user_list) > 0) {
			$cnt = 0;
			foreach ($user_list as $user) {
				$status_title = '-';
				$status_color = '#000';
				$class_name = ' list_item_opened';
				if (1 == intval($user['status_id'])) {
					$status_title = 'Opened';
				} else if (2 == intval($user['status_id'])) {
					$status_title = 'Closed';
					$status_color = '#aaa';
					$class_name = ' list_item_closed';
				} ?>
				<div id="list-<?php echo $user['id']; ?>" class="list_item_list_block">
					<div class="list_item<?php echo $class_name; ?>" style="cursor:pointer;" onclick="Core.List.openInfo(<?php echo $user['id']; ?>)">
						<div style="color:<?php echo $status_color; ?>;">
							<?php echo $user['name']; ?>
						</div>
					</div>
				</div>
				<div id="info-<?php echo $user['id']; ?>" class="list_item_info_block">
					<div class="list_item_active" style="cursor:pointer;" onclick="Core.List.closeInfo()">
						<div style="color:<?php echo $status_color; ?>;">
							<?php echo $user['name']; ?>
						</div>
					</div>
					<div style="padding:5px;">
						<div style="font-size:0.8em;">
							<b style="color:#2b6fb6;">Id:</b> <?php echo $user['id']; ?>
							&nbsp;
							<b style="color:#2b6fb6;">Status:</b> <?php echo $status_title; ?>
						</div>
					</div>
					<div class="list_item_links">
						<a href="<?php echo BASE_URL; ?>user/update/<?php echo $user['id']; ?>" class="list_link">Edit</a>
						&nbsp;
						<a href="<?php echo BASE_URL; ?>user/groups/<?php echo $user['id']; ?>" class="list_link">Groups</a>
						&nbsp;
						<a href="<?php echo BASE_URL; ?>user/delete/<?php echo $user['id']; ?>/<?php echo $group_id; ?>" class="list_link">Delete</a>
					</div>
				</div>
				<?php
				$cnt++;
			} ?>
			</table>
		<?php } else { ?>
			No users found
		<?php } ?>
		</td>
	</tr>
</table>